package com.changhongit.controller.idaas;

import com.changhongit.common.Result;
import com.changhongit.utils.CloseableHttpClientUtil;
import com.yufu.idaas.sdk.service.DismissService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/idaas")
@Api(tags = "腾讯会议idaas接口")
public class IdaasConnector {
    @GetMapping("/dislogin")
    @ApiOperation("免签登录")
    public Result getDisLogin(){
        String dismissUrl = DismissService.getDismissUrl("sunhongyu", "孙宏宇");
        return Result.ok(dismissUrl);
    }

//    @GetMapping
//    public Result getListUser(){
//        String url="https://chit-admin.cig.tencentcs.com/contacts/api/v1/users";
//        String s = CloseableHttpClientUtil.doGet();
//        System.out.println(s);
//        return Result.ok(s);
//    }
}
